<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			// function Flower(){}
			// Flower.prototype.name="荷花";
			// Flower.prototype.showName=function(){alert(this.name);}
			
			// var f1=new Flower();
			// var f2=new Flower();
			// f1.name="玫瑰";
			// f1.showName();
			// f2.showName();
			Date.prototype.chinaDate=function(){
				return this.getFullYear()+"年"+(this.getMonth()+1)+"月"
				+this.getDate()+"日"+this.getHours()+"时"
				+this.getMinutes()+"分"+this.getSeconds()+"秒";
			}
			var d=new Date();
			alert(d.chinaDate());
			var str="   sss  ";
			str=str.trim();
			alert(str+":"+str.length);
		</script>
	</head>
	<body>
	</body>
</html>
